PLCopen 2-Axes Template - ST

This template project contains a two-axis template for getting started with a KASClosed Kollmorgen Automation Suite application.

PLC Programs

This 2-axis PLCopenClosed A vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML. template has a ST program (called Main) that initializes, starts and runs the motion. The motion includes single axis jogging, incremental and absolute movesClosed A positioning movement referenced to a fixed original position. Example: If a stage is positioned at +500 mm, an absolute move to +300 mm would result in a move of 200 mm towards the origin (in the negative direction)., and gearing motion between axes. Also included are controls to enableClosed Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set. Both are required for enabling the drive./disableClosed Removal of the ENABLE signal. Disables power stage. the drives, clear faults, and display fault and axis positionClosed Position means a point in space which is described by different coordinates. Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation. In ACS there can be even more than six coordinates. If the same position is described in different coordinate systems the values of the coordinates are different. information in the Control Panel. A second program, FaultMonitor, reads the drive fault and position information.

The programs are commented to ease their use.

PLCopen Template with ST - Main

Figure 1: PLCopen Template with ST - Main

Also included are three subprograms (MCFB_AKDFault, MCFB_AKDFaultLookup, and MCFB_Jog) that are Kollmorgen UDFBs and can be found in the Project Library section of the IDEClosed Integrated Development Environment - An type of computer software that assists computer programmers in developing software. IDEs normally consist of a source code editor, a compiler and/or interpreter, build-automation tools, and a debugger..

The template contains two PLCopen Servo axes where User Units, Update Rate, Rollover Position, and Axis Limits are defined as:

Figure 2: PLCopen Template - Motion

See Axis Data Parameters for more information about PLCopen axis parameters.

The template contains a Control Panel which works inside of the IDE when running a project.

It is a useful tool to run and debug programs.

Control Panel Screens

The Control Panel has these screens:

  • Control Panel
  • Fault Report Panel

Control Panel Sections

The Control Panel has these sections:

  • Multi-Axis Commands: Controls motion and shows gearing.
  • Single Axis Motion Commands: Shows motion at the single axis level and resettingClosed New start of the microprocessor. the axis position.
  • Axis Status: Shows basic axis information.

See Design the HMI with the Internal Editor for more information.

PLCopen Template - Control Panel

Figure 3: PLCopen Template - Control Panel

Call out# Description

Allows for enabling or disabling the axes.

After an emergency stop, select the Reset and Enable commands before running the axes.

Displays the actual position for each axis.

Used to set the speedClosed Speed is the absolute value of the velocity without direction..

Start or stop the motion on the condition that the axes are enable.

The green light must be switched on.

Control the axis motion.

Fault Report Panel provides more detailed information about when a drive fault occurs.

Figure 4: PLCopen Template - Fault Report Panel

Included in the project template are HMI screens for the AKI terminals created in the KVBClosed Kollmorgen Visual Builder for HMI (Kollmorgen Visualization Builder) environmentClosed Environment objects are global objects that exist before the execution of the script. Typically, they are global objects of Astrolab that can be accessed from the script..

The project can be run in the KVB programming environment after the KAS-IDE program has started running.

Click on the Run button in the Project ribbon to start the program.

These screens, localized in English and German, are included that duplicate the controls on the IDE Internal Control panel screens.